package com.rapid.maintenance.ui.activity.productmall;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.core.util.Pair;

import com.rapid.maintenance.R;
import com.rapid.maintenance.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;


public class ProductMallBusinessMainActivity extends BaseActivity {
    @BindView(R.id.iv_bg)
    ImageView ivBg;
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.iv_logo)
    ImageView ivLogo;
    @BindView(R.id.header)
    RelativeLayout header;
    Pair<View, String> toolbar = Pair.create(getToolbar(), "all_main_toolbar");
    Pair<View, String> statusbar = Pair.create(getStatusBar(), "status_bar");
    Pair<View, String> head = Pair.create(this.header, "header");

    @Override
    protected int provideRootLayout() {
        return R.layout.activity_product_mall_business_main;
    }

    @Override
    protected void init() {
        setTitle("上海嘉台数控机床有限公司");
        setStatusBarColor(0xFF016DB6);
        setToolBarColor(0xFF016DB6);
    }

    @OnClick({R.id.gongsijieshao, R.id.chanpingzhanshi, R.id.hezuoanli, R.id.xinwenzixun, R.id.lianxiwomen, R.id.yijianmaidan})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.gongsijieshao:
                startActivity(ProductMallBusinessCompanyIntroductionActivity.class, toolbar, statusbar, head);
                break;
            case R.id.chanpingzhanshi:
                startActivity(ProductMallBusinessProductDisplayActivity.class, toolbar, statusbar, head);
                break;
            case R.id.hezuoanli:
                startActivity(ProductMallBusinessCooperationCaseActivity.class, toolbar, statusbar, head);
                break;
            case R.id.xinwenzixun:
                startActivity(ProductMallBusinessNewsActivity.class, toolbar, statusbar, head);
                break;
            case R.id.lianxiwomen:
                startActivity(ProductMallBusinessContactUsActivity.class, toolbar, statusbar, head);
                break;
            case R.id.yijianmaidan:
                break;
        }
    }

}
